//
//  MyTableViewCell2.m
//  12.26豆瓣
//
//  Created by dllo on 15/12/26.
//  Copyright © 2015年 lanou3g. All rights reserved.
//

#import "MyTableViewCell2.h"

@implementation MyTableViewCell2
- (void)dealloc{
    [super dealloc];
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self creatCell];
    }
    return self;
}

- (void) creatCell{
    self.imgView = [[UIImageView alloc] init];
    [self.contentView addSubview:_imgView];
    [_imgView release];
    
    
    self.myLabel = [[UILabel alloc] init];
    [self.contentView addSubview:_myLabel];
    [_myLabel release];
    
    self.myLabel2 = [[UILabel alloc] init];
    [self.contentView addSubview:_myLabel2];
    [_myLabel2 release];
    
    self.myLabel3 = [[UILabel alloc] init];
    [self.contentView addSubview:_myLabel3];
    [_myLabel3 release];
    
}

//布局
- (void)layoutSubviews{
    [super layoutSubviews];

    _imgView.frame = CGRectMake(self.contentView.center.x - 180, self.contentView.center.y - 80, 360, 160);
    
    _myLabel.frame = CGRectMake(30, 30, 300, 30);
    
    _myLabel2.frame = CGRectMake(30, 70, 300, 60);

    _myLabel3.frame = CGRectMake(30, 140, 300, 30);

    
}









- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
